package jvm;

import java.nio.ByteBuffer;
import java.util.Scanner;

public class BufferTest {
    private static final  int BUFFER=1024*1024*1024;

    public static void main(String[] args) {
        ByteBuffer   byteBuffer=ByteBuffer.allocateDirect(BUFFER);
        System.out.println("直接内存分配完毕");
        Scanner  scanner=new Scanner(System.in);
        scanner.next();
        System.gc();
    }
}
